package chongxin;
import java.util.Scanner;
public class learn3 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        /*System.out.println("请输入任意数");
        /*int id= sc.nextInt();
        //个位
        int a= id%10;
        //十位
        int b=id/10%10;
        int sum=a+b;
        System.out.println(sum);*/
        /*double num= sc.nextDouble();
        if(num%2==0){
            System.out.println("是偶数");
        }else{
            System.out.println("不是偶数");
        }*/
        /*System.out.println("请分别输入两个整数");
        int temp;
        int num= sc.nextInt();
        int num1= sc.nextInt();
        temp=num;
            num=num1;
            num1=temp;
            System.out.println("交换之后的的数为:"+num+"\n"+num1);
        }*/
        //强制转换
        /*System.out.println("请输入第一个测试的成绩");
        int num= sc.nextInt();
        System.out.println("请输入第二次的测试的成绩");
        double num1= sc.nextDouble();
        int sum=(int)(num+num1);
        System.out.println("两次成绩的之和为:"+sum);*/
        //自动转换
        /*System.out.println("请输入一个整数");
        int num=sc.nextInt();
        double num1=num;
        System.out.println(num1);*/
/*int num=45;
double num1=4.56;
System.out.println("输出这两个数"+num+"\n"+num1);*/
        /*int num= sc.nextInt();
        short num1=sc.nextShort();
        long num2=sc.nextInt();
        float num3=sc.nextFloat();
        double num4=sc.nextDouble();
        byte num5= sc.nextByte();
        String num6=sc.next();
 System.out.println(num+num1+num2+num3+num4+num5+num6);*/
/*System.out.println("请输入四位会员卡号");
int id= sc.nextInt();
System.out.println("会员卡号为"+id);
int a=id/1000%10;
int b=id/100%10;
int c=id/10%10;
int d=id%10;
int sum=a+b+c+d;
System.out.println(sum);
if(sum>20){
    System.out.println("恭喜你中奖");
}else{
    System.out.println("很遗憾，没有中奖");
}*/
/*int a=id/100%10;
int b=id/10%10;
int c=id%10;
int sum=a+b+c;
System.out.println(sum);*/
//千位
/*int a=id/1000%10;
//百位
int b=id/100%10;
//十位
int c=id/10%10;
//个位
int d=(id%10);
int sum=a+b+c+d;
System.out.println("和为:"+sum);*/
        /*System.out.println("请输入姓名、性别、年龄、学历、兴趣");
        String name= sc.next();
        String sex=sc.next();
        int age = sc.nextInt();
        String book= sc.next();
        String intersting= sc.next();
        System.out.println("以下是个人简历的一些信息");
        System.out.println("姓名为:"+name+"\n"+"性别:"+sex+"\n"+"年龄:"+age+"\n"+"学历:"+book+"\n"+"兴趣:"+intersting);
        System.out.println("请输入老师的姓名和性别、年龄、教龄、教授的课程");
        String name2=sc.next();
        String sex2=sc.next();
        int age3=sc.nextInt();
        int jiaoage=sc.nextInt();
        String score=sc.next();
        System.out.println("姓名为:"+name2+"\n"+"性别为:"+sex2+"\n"+"年龄:"+age3+"\n"+"教龄:"+jiaoage+"\n"+"教授的课程:"+score);
        System.out.println("请分别输入个人的姓名和性别、年龄");
         String name1=sc.next();
         String sex1=sc.next();
         int age1=sc.nextInt();
         System.out.println("姓名为:"+name1+"\n"+"性别为:"+sex1+"\n"+"年龄:"+age1);*/
    }}

